package com.zcx.mall.common.web.constants;

import lombok.Getter;

@Getter
public enum  ErrorCodeConstants {

    Sucess("0000", "操作成功"),
    ParamError("0001", "参数校验失败"),
    LoginError("1001", "登录失败，请检查用户名和密码"),
    SystemError("9999", "系统异常");

    private String errorCode;

    private String message;

    private ErrorCodeConstants(String errorCode, String message) {
        this.errorCode = errorCode;
        this.message = message;

    }

}
